package com.xh.example.provider;
import com.xh.hongrpc.registry.LocalRegistry;
import com.xh.hongrpc.server.http.HttpServer;
import com.xh.hongrpc.server.http.VertxHttpServer;

/**
 * 简易服务提供者示例
 */
public class EasyProviderExample {

    public static void main(String[] args) {

        //服务注册
        LocalRegistry.register("com.xh.example.common.service.UserService", UserServiceImpl.class);

        // 提供服务
        HttpServer httpServer = new VertxHttpServer();
        httpServer.doStart(8080);
    }
}

